package cn.gson.crmdemo.model.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

import cn.gson.crmdemo.model.pojo.FunctionType;
import cn.gson.crmdemo.model.vo.FunctionVo;

@Mapper
public interface RoleMapper{
	//查询所有角色
	public JSONArray selectRoleAll(@Param("roleName")String roleName);
	public JSONArray selectRoleAlls();
	//查询功能
	public List<FunctionVo> selectFunction();
	//查询某个角色所有功能编号
	public List<Integer> selectFunctionId(Integer roleId);
	//查询有某个角色的员工编号
	public List<Integer> selecEmpRole(Integer roleId);
}
